package com.han;


import com.doudian.open.core.GlobalConfig;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
public class Application implements InitializingBean {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    public void afterPropertiesSet() {
        GlobalConfig.initAppKey(APP_KEY);
        GlobalConfig.initAppSecret(APP_SECRET);
        GlobalConfig.AddAppKeyAndAppSecret(APP_KEY, APP_SECRET);
    }

    public static final String APP_KEY = "7353558278103811611";
    public static final String APP_SECRET = "7a3c7fcc-5f0e-45cf-aa77-882542a1c02f";
}